package cn.kgc.springbootdemo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <h3>springbootdemo</h3>
 * <p>阿里获得用户区域的VO</p>
 *
 * @author : DongZeJian
 * @date : 2021-03-27 00:30
 **/
@ApiModel("阿里获得用户区域的VO")
@Data
public class IpVo implements Serializable {
    @ApiModelProperty("响应编码")
    private Integer code;

    @ApiModelProperty("地址对象")
    private Address address;

    @Data
    public class Address implements Serializable{
        @ApiModelProperty("IP地址")
        private String ip;

        @ApiModelProperty("地区")
        private String region;

        @ApiModelProperty("城市")
        private String city;
    }
}
